<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:67:"F:\cash\public/../application/admin\view\authority_group\index.html";i:1538618728;s:49:"F:\cash\application\admin\view\public\header.html";i:1538810552;}*/ ?>
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>必普测试系统</title>
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />

    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" href="/static/xadmin/css/font.css">
    <link rel="stylesheet" href="/static/xadmin/css/xadmin.css">
    <script type="text/javascript" src="/static/xadmin/js/jquery.min.js"></script>
    <script src="/static/xadmin/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="/static/xadmin/js/xadmin.js"></script>
    <!--ztree-->
    <link rel="stylesheet" href="/static/ztree/css/zTreeStyle/zTreeStyle.css" type="text/css">
    <script type="text/javascript" src="/static/ztree/js/jquery.ztree.core.js"></script>
    <script type="text/javascript" src="/static/ztree/js/jquery.ztree.excheck.js"></script>
    <script>
        var choose_province = "<?php echo url('area/ajax_province'); ?>",
            choose_city = "<?php echo url('area/ajax_city'); ?>",
            choose_area = "<?php echo url('area/ajax_area'); ?>";
    </script>
</head>
<body>

<div class="x-nav">
      <span class="layui-breadcrumb">
        <a href="<?php echo url('index/survey'); ?>">首页</a>
        <a>
          <cite>导航元素</cite></a>
      </span>
    <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" href="javascript:location.replace(location.href);" title="刷新">
        <i class="layui-icon" style="line-height:30px">ဂ</i></a>
</div>
<?php if(in_array(($group_add), is_array($identification)?$identification:explode(',',$identification))): ?>
<xblock>
    <button class="layui-btn" onclick="xm_admin_show('添加套餐','<?php echo url('AuthorityGroup/meal_add'); ?>')"><i class="layui-icon"></i>添加</button>
</xblock>
<?php endif; ?>
<table class="layui-table">
    <thead>
    <tr>
        <th>
            <div class="layui-unselect header layui-form-checkbox" lay-skin="primary"><i class="layui-icon">&#xe605;</i></div>
        </th>
        <th>名称</th>
        <th>添加时间</th>
        <th >操作</th>
    </tr>
    </thead>
    <tbody>
    <?php if(is_array($meal) || $meal instanceof \think\Collection || $meal instanceof \think\Paginator): $i = 0; $__LIST__ = $meal;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
    <tr>
        <td>
            <div class="layui-unselect layui-form-checkbox" lay-skin="primary" data-id='2'><i class="layui-icon">&#xe605;</i></div>
        </td>
        <td><?php echo $vo->name; ?></td>
        <td><?php echo $vo->create_time; ?></td>
        <td class="td-manage">
            <?php if(in_array(($group_edit), is_array($identification)?$identification:explode(',',$identification))): ?>
            <a title="编辑套餐"  onclick="xm_admin_show('编辑','<?php echo url('AuthorityGroup/authority_group_edit',['id'=>$vo->id]); ?>')" href="javascript:;">
                <i class="layui-icon">&#xe63c;</i>
            </a>
            <?php endif; ?>
            <a title="删除" onclick="member_del(this,'要删除的id')" href="javascript:;">
                <i class="layui-icon">&#xe640;</i>
            </a>
        </td>
    </tr>
    <?php endforeach; endif; else: echo "" ;endif; ?>
    </tbody>
</table>